package week7;

public class Pig extends Animal2{
    public Pig(){
        super("小猪佩奇", 003);
    }

    @Override
    public void eat() {
        System.out.println(name + "在吃草。");
    }

    @Override
    public void sleep() {
        System.out.println(name + "在睡觉。");
    }

    public void hobbit(){
        System.out.println(name + "会玩泥巴、吹口哨。");
    }

    @Override
    public void introduction() {
        System.out.println(name + "身上纹，掌声送给社会人！");
    }
}
